package com.originskyseed.platform.user.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.user.model.HighQualityUser;

/**
 * 优质用户表Mapper类（OSI_HIGH_QUALITY_USER）
 * 
 * @author Tangwanghui
 */
public interface HighQualityUserMapper {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(HighQualityUser record) throws Exception;

	/**
	 * 批量插入记录
	 *
	 * @param list
	 * @return
	 * @throws Exception
	 */
	public int insertBatch(List<HighQualityUser> list) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(HighQualityUser record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(HighQualityUser record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(HighQualityUser record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public HighQualityUser selectByPrimaryKey(String id) throws Exception;



	/**
	 * 查询记录
	 *
	 * @param playerId
	 * @return
	 * @throws Exception
	 */
	public HighQualityUser selectByPlayerId(String playerId) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<HighQualityUser> selectList(HighQualityUser record) throws Exception;


	/**
	 * 统计优质用户
	 *
	 * @param tenantCode
	 * @return
	 * @throws Exception
	 */
	public int insertHighQualityUser(String tenantCode) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<HighQualityUser> selectListByPage(Map<String, Object> params) throws Exception;

}